package com.itfreer.data.db;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.itfreer.data.db.dao.DataDao;
import com.itfreer.form.api.PageInfo;

@Component("dataService")
public class DataServiceImp implements DataService {

	@Autowired
	protected DataDao dataDao;

	@Override
	public List<Map<String, Object>> getRows(String id, PageInfo pInfo) {
		List<Map<String, Object>> list = dataDao.getRows(id, pInfo);
		return list;
	}

	@Override
	public Long getRowCounts(String id, Map<String, Object> where) {
		Long count = dataDao.getRowCounts(id, where);
		return count;
	}

}
